package course8;

import java.util.concurrent.Callable;

public class CatTest {
    public static void main(String[] args) {
     Cat cat = new Cat();
     cat.setName("java");
     cat.setAge(1);
     cat.setSex("母猫");
     cat.setWeight("1.0kg");
     System.out.println("我家小猫的名字是：" + cat.getName());
     System.out.println("我家小猫的年龄是：" + cat.getAge());
     System.out.println("我家小猫的性别是：" + cat.getSex());
     System.out.println("我家小猫的体重是：" + cat.getWeight());

     Cat cat2 = new Cat();
     cat.setName("饥渴的小野猫");
     cat.setAge(3);
     cat.setSex("公猫");
     cat.setWeight("3.9kg");
     for (int i = 0; i < 2; i++) {
      System.out.println("  ");
     }

     System.out.println("饥渴的小野猫" + cat2.getName());
     System.out.println("饥渴的小野猫" + cat2.getAge()+"岁");
     System.out.println("饥渴的小野猫" + cat2.getSex());
     System.out.println("饥渴的小野猫" + cat2.getWeight());
     Cat cat1 = new Cat("java", 1);
     System.out.println(cat1.getName());
    }
}
